﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JQueryWidget.WidgetWeb
{
    public partial class ViewStateTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            //if (!IsPostBack)
            //{
            //    Button btnClickMe = new Button();
            //    form1.Controls.Add(btnClickMe);
            //    btnClickMe.Text = "Click Me";
            //}
            //else
            //{
            //    Label label = new Label();
            //    form1.Controls.Add(label);
            //}
        }

        protected override object LoadPageStateFromPersistenceMedium()
        {
            return base.LoadPageStateFromPersistenceMedium();
        }
        
    }
}